package com.crazyauntzhang.easyshopbackend.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TurnoverFlow {

	/**
	 * 流水号构成：年月日时分秒纳秒
	 */
	private String sequenceNo;//流水号
	private LocalDateTime sequenceDateTime;//流水时间
	private String userID;//收银员ID
	private String itemBarcode;//商品条码
	/**
	 * 操作：1 购买 -1 退货
	 */
	private Integer operation;
	private Double price;//商品单价
	private Double quantity;//购买数量
	private Double profit;//单品收益
	private String handlerID;//经手人
	private String purchaseNo;//退款时对应的收银流水号


	//private String itemName;//商品名称
	//private Double priceReceivable;//应收
	//private Double totalPrice;//总价

}
